package com.Shoping.entity;

public class Commodity {

    private Integer cmId;//商品主键
    private Integer cgId;//商品类别主键
    private String cmName;//商品对应的名称
    private Double cmPrice;//商品价格
    private String cmDetails;//商品详情
    private String cmImg;//商品图片路径

    @Override
    public String toString() {
        return "Commodity{" +
                "cmId=" + cmId +
                ", cgId=" + cgId +
                ", cmName='" + cmName + '\'' +
                ", cmPrice=" + cmPrice +
                ", cmDetails='" + cmDetails + '\'' +
                ", cmImg='" + cmImg + '\'' +
                '}';
    }

    public Integer getCmId() {
        return cmId;
    }

    public void setCmId(Integer cmId) {
        this.cmId = cmId;
    }

    public Integer getCgId() {
        return cgId;
    }

    public void setCgId(Integer cgId) {
        this.cgId = cgId;
    }

    public String getCmName() {
        return cmName;
    }

    public void setCmName(String cmName) {
        this.cmName = cmName;
    }

    public Double getCmPrice() {
        return cmPrice;
    }

    public void setCmPrice(Double cmPrice) {
        this.cmPrice = cmPrice;
    }

    public String getCmDetails() {
        return cmDetails;
    }

    public void setCmDetails(String cmDetails) {
        this.cmDetails = cmDetails;
    }

    public String getCmImg() {
        return cmImg;
    }

    public void setCmImg(String cmImg) {
        this.cmImg = cmImg;
    }

    public Commodity(Integer cmId, Integer cgId, String cmName, Double cmPrice, String cmDetails, String cmImg) {
        this.cmId = cmId;
        this.cgId = cgId;
        this.cmName = cmName;
        this.cmPrice = cmPrice;
        this.cmDetails = cmDetails;
        this.cmImg = cmImg;
    }

    public Commodity() {
    }
}
